<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>DFC</title>
    <link rel="stylesheet" href="css/index.css" />
    <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon"/>
    <script src="js/jquery.min.js"></script>
    <style type="text/css">
		body{
			background: #F1F1F1;
		}
		
        img{max-width: 100%; height: auto;}
        .wechat-tip{display: none; position: fixed; left:0; top:0; bottom:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80);  height: 100%; width: 100%; z-index: 100;}
        .wechat-tip p{text-align: center; margin-top: 10%; padding:0 5%;}
    </style>
</head>
<body>
<div id="download">
    <div class="content">
        <div>
            <img class="login_img" src="img/logo.png" />
            <div class="txtColor-W login_text">DFC
			</div>
        </div>
        <div class="but_div">
            <div>
                <a href="itms-services://?action=download-manifest&url=https://torchex.global/dfc/manifest.plist" class="back_white but_style">
                <span class="ios_text ios_img">ios</span>
                </a>
            </div>
            <div>
                <a href="http://dfc.best/dfc/dfcapp/DFC.apk" class="back_white but_style">
                    <span class="ios_text android_img">android</span>
                </a>
            </div>
        </div>
        
    </div>
</div>

<div class="wechat-tip">
    <p><img id="img" src="img/language_zh.png"/></p>
</div>
<script type="text/javascript">

    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }
    var language = getUrlParam('language');
    if(language){
        $("#img").attr("src","img/language_"+language+".png");
    }else{
        $("#img").attr("src","img/language_zh.png");
    }


    $(window).on("load",function(){
        var winHeight = $(window).height();
        function is_wechat() {
            var ua = navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == "micromessenger") {
                return true;
            } else {
                return false;
            }
        }
        var isWechat = is_wechat();
        if(isWechat){
            $(".wechat-tip").css("height",winHeight);
            $(".wechat-tip").show();
        }
    })
</script>
</body>

</html>
